<?php

namespace App\Routes;

use Base\RouteInterface;
use EasySwoole\Http\Request;
use EasySwoole\Http\Response;
use FastRoute\RouteCollector;
use Lib\PhpDocHlp\PhpDoc;

class DocRoute implements RouteInterface
{
    public static function handle(RouteCollector &$route)
    {
        $route->get('/doc', function (Request $request, Response $response) {
            PhpDoc::getDocHtml($response);
        });
    }
}
